(next-error-recenter): Accept `(4)' as well;
authorThien-Thi Nguyen <ttn@gnuvola.org>
Sat, 23 Jun 2007 12:18:52 +0000 (12:18 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Sat, 23 Jun 2007 12:18:52 +0000 (12:18 +0000)
also, specify `integer' instead of `number'.

lisp/simple.el

index 765032f9f8da50fc459e006325fe3e6ef716ccee..b6b55a5f2eb2024004f3cd46347065796f9c1c24 100644 (file)
@@ -157,9 +157,10 @@ If `fringe-arrow', indicate the locus by the fringe arrow."
   :version "22.1")
 
 (defcustom next-error-recenter nil
-  "*Display the line in the visited source file recentered to this number.
-If nil, don't do any recentering.  See `recenter'."
-  :type '(choice (number :tag "Argument for `recenter'")
+  "*Display the line in the visited source file recentered as specified.
+If non-nil, the value is passed directly to `recenter'."
+  :type '(choice (integer :tag "Line to recenter to")
+                 (const :tag "Center of window" (4))
                  (const :tag "No recentering" nil))
   :group 'next-error
   :version "23.1")